package com.fumihiko.common.exception;
import com.fumihiko.common.utils.SxConstants;



/**
 * 业务异常
 */
public class BusinessException extends BaseException {

	private static final long serialVersionUID = 1L;

	private Integer code;

	private String msg;

	public BusinessException(String msg) {
		this(SxConstants.SERVER_ERROR_CODE,msg);
	}

	public BusinessException(Integer code, String msg) {
		super(msg);
		this.code = code;
		this.msg = msg;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
